package com.itheima.job;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class MyTask {


    @Scheduled(cron = "* * * * * *") //表示当前的方法执行定时任务
    public void task(){
        System.out.println("执行具体的任务");
    }

}
